package com.demo.cloud.shiro.bean;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.util.Set;


@Data
@Entity
@TableName("user")
@AllArgsConstructor
public class User {
    @Id
    public String id;
    public String userName;
    public String password;
    /**
     * 用户对应的角色集合
     */
//    @TableField(exist = false)
//    private Set<Role> roles;
}